package software.hust.com.hust_last.network;

import java.util.Map;

import software.hust.com.hust_last.util.MD5Util;

/**
 * Created by zwjian on 2017/11/14.
 */

public class LoginData extends BaseData {
    public String user_phone;
    public String user_password;
    public String phone_type = "android";
    public String device_token;

    @Override
    protected String getPath() {
        return "/login";
    }

    @Override
    protected void setParams(Map<String, String> params) {
        params.put("user_phone", user_phone);
        params.put("user_password", MD5Util.string2MD5(user_password));
        params.put("phone_type", phone_type);
        params.put("device_token", device_token);
    }
}
